package com.example.yrdev.ordering_system.Model;

import java.util.ArrayList;

/**
 * Created by luke on 30/12/2016.
 */

public class MemberCardReportType {//刷卡报表

    private ArrayList <MemberCardReportType> memberCardReportTypeArrayList;
    private String reportName;
    private String reportId;

    public String getReportId() {
        return reportId;
    }

    public String getReportName() {
        return reportName;
    }

   private static MemberCardReportType memberCardReportType;

    public static MemberCardReportType getInstance(){
        if (memberCardReportType==null)
            memberCardReportType=new MemberCardReportType();

        return memberCardReportType;

    }

    public ArrayList<MemberCardReportType> getMemberCardReportTypeArrayList() {

        if (memberCardReportTypeArrayList==null){
             memberCardReportTypeArrayList=new ArrayList<>();

            String[]reportName=new String[]{"充值","随机消费/定额消费","商品消费","退款"};
            String[]reportId=new String[]{"1","7","6","3"};

            for (int i=0;i<reportName.length;i++){
                MemberCardReportType memberCardReportType=new MemberCardReportType();
                memberCardReportType.reportId=reportId[i];
                memberCardReportType.reportName=reportName[i];
                memberCardReportTypeArrayList.add(memberCardReportType);

            }
        }

        return memberCardReportTypeArrayList;
    }




    private  int reportType=7;//1:充值,2:取款,3:退款,7:随机消费/定额消费,6:商品消费


}
